package cn.yunhe.services.impl;

import cn.yunhe.dao.HotDao;
import cn.yunhe.services.IHotServices;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Map;

/**
 * Created by Administrator on 2018/6/5.
 */
@Service("hotServices")
public class HotServicesImpl  implements IHotServices{
    @Resource
    HotDao hotDao;
    @Override
    public void updateHot(Map map) {
        hotDao.updateHot(map);
    }
    @Override
    public int getByHot(int pro_id) {
        return hotDao.getByHot(pro_id);
    }
}
